{% extends "base.html" %} {% block title %}Settings from a file Β· {{ app_name }}{% endblock %} {# 🧾 THE COMPARISON (core/settingsfile.py, #82). This page is the consent for an imported settings file: it is rendered from a POST, it has written nothing, and the only thing that writes is the button below β€” which carries the values shown here (`bundle`, re-read by the same validator on the way back) and the seal of this exact comparison (`seen`). πŸ”΄ No JavaScript, and the values are printed as text: a file is somebody else's words. #} {% block body %}

🧾 Settings from a file {% if name %}{{ name }} · {% endif %}nothing is written until you say so

{% if refused %}

Not imported β€” nothing was changed

A file is taken whole or not at all. This one was refused, for {{ 'this reason' if refused|length == 1 else 'these reasons' }}:

{% if refused|length > 40 %}

…and {{ refused|length - 40 }} more of the same kind.

{% endif %}

A key this box does not have may belong to a module it does not run. The same check from a clone: python -m handlr.settings check FILE.

Back to Settings

{% elif not changes %}

Nothing would change

{{ same|length }} key{{ '' if same|length == 1 else 's' }} in the file, and every one already has that value here.

Back to Settings

{% else %} {% if moved %}

A setting changed after you looked at the comparison, so it was not written. This is the comparison as it stands now β€” read it again.

{% endif %} {% set reaching = changes|selectattr('reaches')|list %} {% if reaching %}

🌐 {{ reaching|length }} of these belong{{ 's' if reaching|length == 1 else '' }} to a module that says it reaches the network ({{ reaching|map(attribute='reaches')|unique|join(', ') }}). A file can change where it reaches, and whether it does: read {{ 'that line' if reaching|length == 1 else 'those lines' }} twice.

{% endif %}

{{ changes|length }} setting{{ '' if changes|length == 1 else 's' }} would change

{% for r in changes %} {% endfor %}
SettingNowFrom the file
{{ r.label }}{{ r.key }}{% if r.where %} · {{ r.where }}{% endif %}{% if r.reaches %} · 🌐{% endif %} {% if r.old %}{{ r.old }}{% else %}empty{% endif %} {% if r.new %}{{ r.new }}{% else %}empty{% endif %}
{% if same %}
{{ same|length }} more key{{ '' if same|length == 1 else 's' }} in the file already {{ 'has' if same|length == 1 else 'have' }} that value β€” left as {{ 'it is' if same|length == 1 else 'they are' }}

{% for r in same %}{{ r.key }} {% endfor %}

{% endif %}
Cancel β€” change nothing

Every other setting stays as it is. The import goes in your log as one line naming these keys, not their values. To take it back, download your settings first, or set the old values again here.

{% endif %} {% endblock %}